-- GENERATED SPELL FOR [Arash-ethis] --


function spell0_5349(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(15117,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5349', 3000, 1)
end

function spell1_5349(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(12553,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5349', 0, 1)
end

function Sorts_5349(pUnit, Event)
local choix_sorts_5349 = math.random(0, 1)
if choix_sorts_5349 == 0 then
pUnit:RegisterEvent('spell0_5349', 1, 1)
end
if choix_sorts_5349 == 1 then
pUnit:RegisterEvent('spell1_5349', 1, 1)
end
end

function mob5349_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5349', math.random(1500, 3000), 1)
end

function mob5349_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5349_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5349_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5349, 1, 'mob5349_Action')
RegisterUnitEvent(5349, 2, 'mob5349_Leave')
RegisterUnitEvent(5349, 3, 'mob5349_Kill')
RegisterUnitEvent(5349, 4, 'mob5349_Die')
